WatchKit App 与 iPhone 端显示名称的问题

缘由

今天 Watch 项目被拒了,原因是 Watch 和 iPhone 端 App 显示名称没有做到全部一致.

具体问题

被拒描述

1
2
3
4
5
6
7
8
9
10
11
While your iTunes Connect Application State shows as Metadata Rejected, we don't require a new binary to correct this issue. Once this information is available, we can continue your review. 3.4 Details
We noticed the app name to be displayed on the App Store and the app name displayed on a device do not sufficiently match, which makes it difficult for users to find the app they just downloaded. The application names are:
- Name on the App Store: 我是一个中文名(随便写的)
- Name displayed on iPhone: 我是一个中文名
- Name displayed on Apple Watch companion app: woshiyigezhongwen
- Name displayed on Apple Watch: 我是一个中文名

分析

是 iPhone 端的 Apple Watch 这个 App 里项目名称显示不对

解决办法

1.经过测试,发现修改 Host App 的 info.plist 里的 Bundle Name 为中文可解决

但是这个会导致一些其他问题,而且不优雅~ so ,我们一开始就拒绝了

2.在 infoplist.strings 里,增加如下字段(记得添加齐全,别漏)

1
"CFBundleName" ="我是一个中文";

最终效果


原创文章,转载请注明地址: https://kevinmky.github.io